set(embed_files "web/www/index_ov2640.html.gz"
                "web/www/index_ov3660.html.gz"
                "web/www/index_ov5640.html.gz"
                "web/www/monitor.html.gz")

set(src_dirs    ai
                camera
                lcd
                web)

set(include_dirs    ai
                    camera
                    lcd
                    web)

set(requires    esp-dl
                esp_http_server
                nvs_flash
                esp_adc
                esp_lcd
                esp_timer
                esp_wifi
                fb_gfx)

idf_component_register(SRC_DIRS ${src_dirs} INCLUDE_DIRS ${include_dirs} REQUIRES ${requires} EMBED_FILES ${embed_files})

component_compile_options(-ffast-math -O3 -Wno-error=format=-Wno-format)
